package com.itheima01;

import java.util.ArrayList;

public class DemoMethod {
    public static void main(String[] args) {
        ArrayList<String> list = new ArrayList<>();

        list.add("马冬梅");
        list.add("夏洛");
        list.add("王老师");
        list.add("秋雅");
        list.add("夏洛");

        list.add(2,"秋雅");

        //list.remove("夏洛");

        //list.set(2,"马冬梅");

        //String s = list.get(2);
        //System.out.println(s);

        //int size = list.size();
        //System.out.println(size);

        System.out.println(list);
    }
}
